

const state: any = {
    commonBoxState: false //设置全局弹窗状态
}

const mutations: any = {
    //设置全局弹窗状态
    setCommonBoxState: (state: any, commonBoxState: Boolean) => {
        state.commonBoxState = commonBoxState
    }
}

const actions: any = {
    setCommonBoxState({ commit }: any, commonBoxState: Boolean) {
        commit('setCommonBoxState', commonBoxState)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}
